import { http } from "@/utils/http";

export type MapPoint = {
  id: number; // 记录ID，用于跳转详情
  location: string;
  longitude: number;
  latitude: number;
  count: number;
  lastDate: string;
  type: string; // 记录类型，如：吃饭、看电影
};

/** 获取打卡地图聚合点位列表 */
export const getMapPoints = () => {
  return http.request<any, MapPoint[]>("get", "/love/map-points");
};
 